package com.lesso.cyg.sunflower.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * <p>
 * 考勤规则表
 * </p>
 *
 * @author cyg
 * @since 2025-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_attendance_rule")
public class AttendanceRule extends BaseModel<AttendanceRule> {

    private static final long serialVersionUID = 1L;

    /**
     * 规则编码
     */
    @TableField("rule_code")
    private String ruleCode;

    /**
     * 规则名称
     */
    @TableField("rule_name")
    private String ruleName;

    /**
     * 上班时间
     */
    @TableField("work_start_time")
    private LocalTime workStartTime;

    /**
     * 下班时间
     */
    @TableField("work_end_time")
    private LocalTime workEndTime;

    /**
     * 迟到阈值（分钟）
     */
    @TableField("late_threshold")
    private Integer lateThreshold;

    /**
     * 早退阈值（分钟）
     */
    @TableField("early_threshold")
    private Integer earlyThreshold;

    /**
     * 删除标识：0-正常，1-删除
     */
    @TableField("del_status")
    @TableLogic
    private Integer delStatus;
}